<?php
$url = 'https://developers.weixin.qq.com/miniprogram/dev/component/input.html';
$ch = curl_init();
$timeout = 5;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
$file_contents = curl_exec($ch);
//var_dump(curl_error($ch));
curl_close($ch);

var_dump($file_contents);
die;
